package com.qms.qep.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 检验数据对象 inspection_data
 * 
 * @author qms
 * @date 2025-05-14
 */
public class InspectionData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 检验任务ID */
    @Excel(name = "检验任务ID")
    private Integer taskId;

    /** 参数ID */
    @Excel(name = "参数ID")
    private Integer paramId;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String paramName;

    /** 标准值 */
    @Excel(name = "标准值")
    private String standardValue;

    /** 实测值 */
    @Excel(name = "实测值")
    private String measuredValue;

    /** 是否合格（1合格 0不合格） */
    @Excel(name = "是否合格", readConverterExp = "1=合格,0=不合格")
    private Integer isQualified;

    /** 缺陷ID */
    @Excel(name = "缺陷ID")
    private Integer defectId;

    /** 附件（图片/文档） */
    private String attachmentUrl;

    /** 检验项ID */
    @Excel(name = "检验项ID")
    private String itemId;

    /** 结果 */
    @Excel(name = "结果")
    private String result;

    /** 缺陷图片路径 */
    private String defectImagePath;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 责任人 */
    @Excel(name = "责任人")
    private String responsiblePerson;

    /** 处理结果 */
    @Excel(name = "处理结果")
    private String processResult;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTaskId(Integer taskId) 
    {
        this.taskId = taskId;
    }

    public Integer getTaskId() 
    {
        return taskId;
    }
    public void setParamId(Integer paramId) 
    {
        this.paramId = paramId;
    }

    public Integer getParamId() 
    {
        return paramId;
    }
    public void setParamName(String paramName) 
    {
        this.paramName = paramName;
    }

    public String getParamName() 
    {
        return paramName;
    }
    public void setStandardValue(String standardValue) 
    {
        this.standardValue = standardValue;
    }

    public String getStandardValue() 
    {
        return standardValue;
    }
    public void setMeasuredValue(String measuredValue) 
    {
        this.measuredValue = measuredValue;
    }

    public String getMeasuredValue() 
    {
        return measuredValue;
    }
    public void setIsQualified(Integer isQualified) 
    {
        this.isQualified = isQualified;
    }

    public Integer getIsQualified() 
    {
        return isQualified;
    }
    public void setDefectId(Integer defectId) 
    {
        this.defectId = defectId;
    }

    public Integer getDefectId() 
    {
        return defectId;
    }
    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }
    public void setItemId(String itemId) 
    {
        this.itemId = itemId;
    }

    public String getItemId() 
    {
        return itemId;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setDefectImagePath(String defectImagePath) 
    {
        this.defectImagePath = defectImagePath;
    }

    public String getDefectImagePath() 
    {
        return defectImagePath;
    }
    public void setCreateTime(Date createTime) 
    {
        this.createTime = createTime;
    }

    public Date getCreateTime() 
    {
        return createTime;
    }
    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    public String getRemark() 
    {
        return remark;
    }
    public void setResponsiblePerson(String responsiblePerson) 
    {
        this.responsiblePerson = responsiblePerson;
    }

    public String getResponsiblePerson() 
    {
        return responsiblePerson;
    }
    public void setProcessResult(String processResult) 
    {
        this.processResult = processResult;
    }

    public String getProcessResult() 
    {
        return processResult;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("paramId", getParamId())
            .append("paramName", getParamName())
            .append("standardValue", getStandardValue())
            .append("measuredValue", getMeasuredValue())
            .append("isQualified", getIsQualified())
            .append("defectId", getDefectId())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("itemId", getItemId())
            .append("result", getResult())
            .append("defectImagePath", getDefectImagePath())
            .append("responsiblePerson", getResponsiblePerson())
            .append("processResult", getProcessResult())
            .toString();
    }
} 